POV-Ray : Newsgroups : povray.off-topic : code readability : code readability Server Time
7 Sep 2024 09:21:17 EDT (-0400)
  code readability  
From: Halbert
Date: 26 Jun 2008 14:11:00
Message: <4863dbb4$1@news.povray.org>
I, for one, find it much easier to read C++ code which is braced like this:

if(somecondition == 0)
{
    // do some stuff
}
else
{
    // do something else
}


As opposed to

if(somecondition == 0) {
    // do some stuff
}
else {
    // do something else
}

Why doesn't the rest of the world understand that?


--


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.